package com.tjdx.projectsubmission.controller;

import com.tjdx.projectsubmission.db.entity.FillReportDetail;
import com.tjdx.projectsubmission.dto.FillReportQueryDto;
import com.tjdx.projectsubmission.dto.FillReportSaveDto;
import com.tjdx.projectsubmission.service.FillReportDetailService;
import com.tjdx.projectsubmission.service.FillReportService;
import com.tjdx.projectsubmission.vo.R;
import com.tjdx.projectsubmission.vo.fill.FileReportListVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/detail")
public class FillReportDetailController {


    @Autowired
    private FillReportDetailService reportDetailService;


    /**
     * 获取此用户当前是否存在填报
     */
    @PostMapping("/updateOne")
    public R updateOne(@RequestBody FillReportDetail fillReportDetail) {
        return reportDetailService.updateOne(fillReportDetail);
    }



//    /**
//     * 保存工程填报-提交
//     */
//    @PostMapping("/saveReport")
//    public R saveReport(@RequestBody FillReportSaveDto fillReportSaveDto) {
//        int num = fillReportService.saveReport(fillReportSaveDto);
//        return num > 0 ? R.ok() : R.error().message("标头数据重复！");
//    }













}
